package edu.sctu.zhuyingzhi.month201506.day20150617.enumTest;

/**
 * Created by user13 on 2015/6/17.
 */
public class Main {
    public static void main(String[] args) {
        Mycolor mycolor = Mycolor.BLUE;
        switch (mycolor){
            case RED:
                System.out.println("红");break;
            case GREEN:
                System.out.println("绿");break;
            case BLUE:
                System.out.println("蓝");break;
            default:
                System.out.println("meiyou");break;
        }

        for (Mycolor color : Mycolor.values()){
            System.out.printf(color.name());
            System.out.println(color.ordinal());
            System.out.println("==============================");
        }

    }
}
